home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / et / et3_0-a1.lha / et3 / src / PROGENV / Inspector.h < prev    next >
C/C++ Source or Header  |  1992-06-07  |  2KB  |  83 lines

  1. #ifndef Inspector_First
  2. #ifdef __GNUG__
  3. //pragma once
  4. #pragma interface
  5. #endif
  6. #define Inspector_First
  7.  
  8. #include "CollView.h"
  9. #include "EtPeTool.h"
  10.  
  11. class PeClassListView;
  12. class PeFindInspReferences;
  13. class SysEvtHandler;
  14. class PeObjectView;
  15. class OrdCollection;
  16. class Ref;
  17. class Class;
  18. class TextField;
  19.  
  20. //---- PeInspector -------------------------------------------------------------
  21.  
  22. class PeInspector: public EtPeTool {
  23.     static PeInspector *inspector;
  24.     static int inspcnt;
  25.     static OrdCollection *allInspectors;
  26.     
  27.     CollectionView *objects, *references;
  28.     PeClassListView *classes;
  29.     OrdCollection *classItems;
  30.     SeqCollection *objectItems, *referenceItems;
  31.     TextField *refTitle, *objTitle; 
  32.     VObject *start, *left, *right, *end;   
  33.     Object *currentOp;
  34.     PeFindInspReferences *findReferences;
  35.     SysEvtHandler *refresh;
  36.     PeObjectView *objView;
  37.     OrdCollection *path;
  38.     int position;
  39.  
  40. public:
  41.     MetaDef(PeInspector);
  42.     PeInspector(Manager *m);
  43.     ~PeInspector();
  44.     
  45.     VObject *DoMakeContent();
  46.     MenuBar *DoMakeMenuBar();
  47.     
  48.     void Init(Object *op);
  49.     void LoadObjectsOfClass(Class *, bool members);
  50.     void Member(int mode, char *name, int offset, int size= 0);
  51.     void References(Object*);
  52.     void Reset();
  53.     void ResetReferences();
  54.     void FoundReference(Object *op, char *name, int index= -1);
  55.     void ResetObjects();
  56.     void FreedMemory(void *addr, void *end);
  57.     void DoInspect(Object *);
  58.     
  59.     void MoveTo(int pos);
  60.     void Push(Ref *r);
  61.     void ShowReference(Ref *);
  62.     void ShowClass(Class *cl);
  63.     void ShowObject(Object *op);
  64.     void SelectAndRevealItem(CollectionView *cv, int at);
  65.  
  66.     //---- menus ------------
  67.     void Control(int id, int, void *v);
  68.     void DoSetupMenu(Menu *menu);
  69.     Command *DoMenuCommand(int cmd);
  70.     void UpdateButtons();
  71.  
  72.     //---- commands ---------
  73.     void ShowAllInstances();
  74.     
  75.     friend void InspectorFreeHook(void *, void *, size_t);
  76.     void RemoveDeletedRef(int i, Ref *r);
  77.  
  78.     static void Spawn(Manager *m, Ref *ref, bool block);
  79.     static void ShowObject(Manager *m, Object *op, bool block);
  80. };
  81.  
  82. #endif
  83.